<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<style>
.d span.error {
position: absolute !important;
left: 260px;
}
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/maintainTask/saveMaintainTask" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
         <input type="hidden" id="failureCause" name="failureCause" >
         <input type="hidden" id="part" name="part" >
            <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (task.taskCode)??>${task.taskCode!''}</#if>">
            <fieldset>
                <dl>
                    <dt><@label key="taskCode.C,colon">任务编号：</@label></dt>
                    <dd>
                        <input name="taskCode" value="<#if (task.taskCode)??>${task.taskCode!''}</#if>" size="32" type="text" maxlength="20" readonly="readonly" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="statusECode.C,colon">任务状态：</@label></dt>
                    <dd>
                        <select disabled name="statusECode"> <#list status as types>
                            <option value="${types.eCode}"<#if task.statusECode?? && task.statusECode == types.eCode> selected="selected"</#if>>${types.eCodeText}</option> </#list>
                        </select>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="equipmentCode.C,colon">设备编号：</@label></dt>
                    <dd>
                        <input readonly class="required" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" value="<#if (task.equipmentCode)??>${task.equipmentCode!''}</#if>" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='equipmentText.C,colon'>设备描述：</@label></dt>
                    <dd>
                        <input id="equipmentLookup.equipmentText" readonly size="22" type="text" maxlength="60" name="equipmentText" value="<#if (task.equipmentText)??>${task.equipmentText!''}</#if>" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="plannedMaintainDate.C,colon">计划维护日期：</@label></dt>
                    <dd>
                        <input type="text" value="<#if (task.plannedMaintainDate)??>${task.plannedMaintainDate?string("yyyy-MM-dd")}</#if>" class="required" readonly="readonly" name="plannedMaintainDate" dateFmt="yyyy-MM-dd" />
                    </dd>
                </dl>
                <dl style="height: 70px; width: 600px">
                    <dt><@label key="memo.C,colon">备注：</@label></dt>
                    <dd>
                        <textarea readonly style="width: 435px; height: 68px;" maxlength="200" name="memo" cols="45" rows="4"><#if (task.memo)??>${task.memo!''}</#if></textarea>
                    </dd>
                </dl>
                <dl>
                    <dt>&nbsp;</dt>
                    <dd>
                        <label><input disabled type="checkbox" name="unPlannedFlag" value="1"<#if (task.unPlannedFlag)?? && (task.unPlannedFlag == 1)> checked="true"</#if>><@label key="unPlannedFlag.C">手工创建标识</@label></label>
                    </dd>
                </dl>
                <dl style="width: 100%;height: auto;clear: both;">
                    <dd>
                        <div class="tabs" currentIndex="0" eventType="click" style="width: 600px;">
                            <div class="tabsHeader">
                                <div class="tabsHeaderContent">
                                    <ul>
                                        <li><a href="javascript:;"><span><@label key="maintainDetail.C">维护记录</@label></span> </a>
                                        </li>
                                        <li><a href="javascript:;"><span><@label key="failureCause.C">故障原因</@label></span> </a>
                                        </li>
                                        <li><a href="javascript:;"><span><@label key="maintainPart.C">更换备件记录</@label></span> </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tabsContent">
                                <div>
                                    
                                    <dl style="height: 40px; width: 590px">
                                        <dt><@label key="maintainMemo.C,colon">维护内容：</@label></dt>
                                        <dd>
                                            <textarea readonly class="required" style="width: 435px; height: 38px;" maxlength="200" name="maintainMemo" cols="45" rows="4"><#if (task.maintainMemo)??>${task.maintainMemo!''}</#if></textarea>
                                        </dd>
                                    </dl>
                                    <dl style="height: 40px; width: 590px">
                                        <dt><@label key="maintainResult.C,colon">维护结果：</@label></dt>
                                        <dd>
                                            <textarea readonly class="required" style="width: 435px; height: 38px;" maxlength="200" name="maintainResult" cols="45" rows="4"><#if (task.maintainResult)??>${task.maintainResult!''}</#if></textarea>
                                        </dd>
                                    </dl>
                                    <dl style="width: 280px">
                                        <dt><@label key='maintainUser.C,colon'>维护人：</@label></dt>
                                        <dd>
                                            <input readonly class="required" size="22" type="text" maxlength="40" name="maintainUser" value="<#if (task.maintainUser)??>${task.maintainUser!''}</#if>" />
                                        </dd>
                                    </dl>
                                    <dl style="width: 280px"></dl>
                                    <dl style="width: 280px" class="d">
                                        <dt><@label key="maintainStartDateTime.C,colon">维护开始时间：</@label></dt>
                                        <dd>
                                            <input type="text" class="required" datefmt="yyyy-MM-dd HH:mm:ss" readonly="readonly" name="maintainStartDateTime"  value="<#if (task.maintainStartDateTime)??>${task.maintainStartDateTime?string("yyyy-MM-dd HH:mm:ss")}</#if>"/> 
                                        </dd>
                                    </dl>
                                    <dl style="width: 280px" class="d">
                                        <dt><@label key="maintainEndDateTime.C,colon">维护结束时间：</@label></dt>
                                        <dd>
                                            <input type="text" class="required" datefmt="yyyy-MM-dd HH:mm:ss" readonly="readonly" name="maintainEndDateTime" value="<#if (task.maintainEndDateTime)??>${task.maintainEndDateTime?string("yyyy-MM-dd HH:mm:ss")}</#if>"/> 
                                        </dd>
                                    </dl>
                    
                                </div>
                                <div>
                                    <table id="failureCauseTable" class="table border" style="width: 100%;" layoutH="419">
                                        <thead>
                                            <tr>
                                                <th width="50px"><@label key="failureCauseCode.C">故障原因编号</@label></th>
                                                <th width="100px"><@label key="failureCauseText.C">故障原因描述</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#if causes??><#if (causes?size>0)> <#list causes as cause>
                                            <tr target="para_code" rel="${cause.failureCauseCode!''}">
                                                <td>${cause.failureCauseCode!''}</td>
                                                <td>${cause.failureCauseText!''}</td>
                                            </tr>
                                            </#list> </#if> </#if>
                                        </tbody>
                                    </table>
                                </div>
                                <div>
                                    <table id="partTable" class="table border" style="width: 100%;" layoutH="419">
                                        <thead>
                                            <tr>
                                                <th width="50px"><@label key="partCode.C">备件编号</@label></th>
                                                <th width="100px"><@label key="partText.C">备件描述</@label></th>
                                                <th width="100px"><@label key="quantity.C">数量</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#if parts??><#if (parts?size>0)> <#list parts as part>
                                            <tr target="part_code" rel="${part.partCode!''}">
                                                <td>${part.partCode!''}</td>
                                                <td>${part.partText!''}</td>
                                                <td>${part.quantity!''}</td>
                                            </tr>
                                            </#list> </#if> </#if>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="tabsFooter">
                            </div>
                        </div>
                    </dd>
                </dl>
            </fieldset>
        </div>
            <#assign createInfo=task/>
            <#include "/common/createInfo.html">
        <div class="formBar">
            <ul>
        <li>
                    <div class="buttonActive"><div class="buttonContent">    <button type="button" class="close"><@label key="close.B">关闭</@label></button></div></div>
                </li>
            </ul>
        </div>
    </form>
</div>

